<?php
class User_Bootstrap extends Zend_Application_Module_Bootstrap{
    public function _initRequest(){
    	define('_home_title', 'GameStudio Việt');
    }
	protected function _initSession(){
		Zend_Session::start();
	}
	public function _initRouter()
	{
			
		$frontController = Zend_Controller_Front::getInstance();
		$router = $frontController->getRouter();
		//$router->removeDefaultRoutes();
			
		$router->addRoute('register',
				new Zend_Controller_Router_Route('/register',
						array(
								'module' => 'user',
								'controller' => 'auth',
								'action' => 'register'
						)
				)
		);
		$router->addRoute('login',
				new Zend_Controller_Router_Route('/login',
						array(
								'module' => 'user',
								'controller' => 'auth',
								'action' => 'login'
						)
				)
		);
		$router->addRoute('loginfb',
				new Zend_Controller_Router_Route('/login/facebook',
						array(
								'module' => 'user',
								'controller' => 'auth',
								'action' => 'loginfb'
						)
				)
		);
		$router->addRoute('logingg',
				new Zend_Controller_Router_Route('/login/google',
						array(
								'module' => 'user',
								'controller' => 'auth',
								'action' => 'logingg'
						)
				)
		);
		$router->addRoute('logout',
				new Zend_Controller_Router_Route('/logout',
						array(
								'module' => 'user',
								'controller' => 'auth',
								'action' => 'logout'
						)
				)
		);
		
	}
}

?>